EMPTY, WHITE, BLACK = 0, 1, -1
move_dirs = ((1,0),(0,1),(1,1),(-1,0),(0,-1),(1,-1),(-1,1),(-1,-1))
#Board drawing
print_dict = {EMPTY:' ', BLACK:'O', WHITE:'O'}
NORMAL, MOVE, FLIP = 1,2,3
print_bkgrd = {EMPTY:{NORMAL:0x80,MOVE:0x30,FLIP:0x40}, BLACK:{NORMAL:0x80,MOVE:0x30,FLIP:0x40}, WHITE:{NORMAL:0x8F,MOVE:0x3F,FLIP:0x4F}}
#AI
C  = 100 #Corner
D  = 10  #Edge near corner
E  = 5   #Edge
N  = 1   #Normal
weights =  [C,D,E,E,E,E,D,C,
            D,N,N,N,N,N,N,D,
            E,N,N,N,N,N,N,E,
            E,N,N,N,N,N,N,E,
            E,N,N,N,N,N,N,E,
            E,N,N,N,N,N,N,E,
            D,N,N,N,N,N,N,D,
            C,D,E,E,E,E,D,C]
'''weights = [240,-20,20,5,5,20,-20,240,
                -20,-40,-5,-5,-5,-5,-40,-20,
                20,-5,15,3,3,15,-5,20,
                5,-5,3,3,3,3,-5,5,
                5,-5,3,3,3,3,-5,5,
                20,-5,15,3,3,15,-5,20,
                -20,-40,-5,-5,-5,-5,-40,-20,
                240,-20,20,5,5,20,-20,240]'''